<template>
  <div class="container">
    <div class="header">
      <div class="top">
        自习室
        <van-icon name="home-o" @click="toSearch" />
        <van-icon name="search" />
      </div>
    </div>
    <div class="main">插画</div>
    <p>推荐自习室</p>
    <div class="room" @click="toRec">1</div>
    <div class="room">2</div>
    <div class="room">3</div>
  </div>
</template>

<script>
export default {
  methods: {
    toRec() {
      this.$router.push("Recommend");
    },
    toSearch() {
      this.$router.push("Search");
    },
  },
};
</script>

<style scoped>
* {
  margin: 0;
  padding: 0;
}
.container {
  width: 100%;
  height: 100%;
}
.header {
  width: 750px;
  height: 48px;
  margin-top: 8px;
}
.top {
  color: rgb(0, 0, 0);
  font-size: 48px;
  line-height: 48px;
  text-align: center;
  margin-left: 120px;
}
.van-icon {
  float: right;
  margin-right: 20px;
  font-size: 48px;
}
.main {
  width: 750px;
  height: 212px;
  line-height: 20px;
  margin-top: 50px;
  background-color: rgba(239, 239, 239, 100);
  color: rgba(16, 16, 16, 100);
  font-size: 14px;
  text-align: center;
  line-height: 212px;
  font-family: Arial;
  border: 1px solid rgba(187, 187, 187, 100);
}
p {
  color: rgb(0, 0, 0);
  font-size: 32px;
  margin-left: 50px;
  margin-top: 20px;
  font-family: PingFangSC-regular;
}
.room {
  margin-left: 100px;
  margin-top: 60px;
  width: 554px;
  height: 200px;
  line-height: 200px;
  background-color: rgba(239, 239, 239, 100);
  text-align: center;
  border: 1px solid rgba(187, 187, 187, 100);
}
</style>
